package cn.sofwin.day0105homework;

import java.util.Scanner;

public class Distributing {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int dormitory,floor,studentNumber;
        int i,j;

        System.out.println("请输入本届新生人数：");
        studentNumber = sc.nextInt();

        i=studentNumber%6;
        j=(studentNumber%600);
        if(i>0){
            dormitory = studentNumber/6+1;
        }else
            dormitory = studentNumber/6;
        if(j>0){
            floor=studentNumber/600+1;
        }
        else
            floor=studentNumber/600;


        System.out.println("需要" + dormitory + "间宿舍");
        System.out.println("需要" + floor + "栋楼");

    }
}
